<template>
  <div id="main" style="width: 1200px;height:800px;"></div>
</template>

<script>
import * as echarts from 'echarts';


export default {
  name: "Demo3",
  mounted() {

    // 基于准备好的dom，初始化echarts实例
// 绘制图表


    echarts.init(document.getElementById('main')).setOption({

      xAxis: {
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
      },
      yAxis: {
        type: 'value'
      },
      series: [
        {
          data: [150, 230, 224, 218, 135, 147, 260],
          type: 'line'
        }
      ]
    });

  },


};
</script>

<style scoped>

</style>
